package cn.source.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import cn.source.common.annotation.Excel;
import cn.source.common.core.domain.BaseEntity;

/**
 * 邮件发送配置对象 db_mail_config
 *
 * @author sourcebyte.vip
 * @date 2025-03-03
 */
public class DbMailConfig {
    private static final long serialVersionUID = 1L;

    /**
     * 主机
     */
    @Excel(name = "主机")
    private String host;

    /**
     * 端口
     */
    @Excel(name = "端口")
    private Long port;

    /**
     * 用户名
     */
    @Excel(name = "用户名")
    private String user;

    /**
     * 授权码
     */
    @Excel(name = "授权码")
    private String pass;

    /**
     * 发件人
     */
    @Excel(name = "发件人")
    private String from;

    private String ssl;

    public String getSsl() {
        return ssl;
    }

    public void setSsl(String ssl) {
        this.ssl = ssl;
    }

    public void setHost(String host) {
        this.host = host;
    }

    public String getHost() {
        return host;
    }

    public void setPort(Long port) {
        this.port = port;
    }

    public Long getPort() {
        return port;
    }

    public String getUser() {
        return user;
    }

    public void setUser(String user) {
        this.user = user;
    }

    public void setPass(String pass) {
        this.pass = pass;
    }

    public String getPass() {
        return pass;
    }

    public void setFrom(String from) {
        this.from = from;
    }

    public String getFrom() {
        return from;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("host", getHost())
                .append("port", getPort())
                .append("user", getUser())
                .append("pass", getPass())
                .append("from", getFrom())
                .toString();
    }
}
